<template>
    <p>全局主见</p>
    <button @click="addOne">addone</button>
    <p>{{ count }}</p>
</template>

<script>
export default {
    name :"GcD",
    data(){
        return{
            count :0
        }
    },
    methods:{
        addOne(){
            this.count++
        }
    }
}

</script>

<style scoped>
p {
    color: pink;
}
</style>